package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel("用户实体类")
@NoArgsConstructor
@Data
@TableName("stu_user")
public class User {
    @ApiModelProperty("用户ID")
    @TableId(value="user_id",type= IdType.ASSIGN_ID)
    private String userId;

    @ApiModelProperty("用户名")
    @TableField(value = "user_name")
    private String userName;

    @ApiModelProperty("用户密码")
    @TableField(value = "user_password")
    private String userPassword;

}
